package com.example.novelsys.service;

import com.example.novelsys.dao.CategoriesDao;
import com.example.novelsys.entity.Categories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//小说分类
@Service
public class CategoriesService {
	 @Autowired
	CategoriesDao categoriesDao;
	 
	//查询所有分类信息
	  public List<Categories> queryAll(){
	  	  return categoriesDao.queryAll();
	  }
}
